package top.jiug.k_pdf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 视图 - 控制器
 */
@Controller
public class ViewController {

    /**
     * 返回字符串
     */
    @RequestMapping("/index")
    @ResponseBody
    public String index(){
        System.out.println("kk");
        return "index";
    }

    /**
     * 跳转页面
     */
    @RequestMapping("/p/index")
    public String indexPage(){
        return "index";
    }


}
